From 7943809be465c7866abb26288f7c4526f5a8037a Mon Sep 17 00:00:00 2001 From: "cl349@freefall.cl.cam.ac.uk" Date: Mon, 25 Oct 2004 20:30:47 +0000 Subject: [PATCH] bitkeeper revision 1.1159.1.276 (417d6277RUrjgN8Byhbusyfr7nmjbw) mkbuildtree: Prevent disaster when tree to xenify doesn't exist. --- linux-2.6.9-xen-sparse/mkbuildtree | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6.9-xen-sparse/mkbuildtree b/linux-2.6.9-xen-sparse/mkbuildtree index f932b92d41..20513e6ead 100755 --- a/linux-2.6.9-xen-sparse/mkbuildtree +++ b/linux-2.6.9-xen-sparse/mkbuildtree @@ -78,7 +78,7 @@ relative_lndir () # Get absolute path to the destination directory pushd . >/dev/null -cd ${1} +cd ${1} || { echo "cannot cd to ${1}"; exit 1; } AD=$PWD popd >/dev/null @@ -93,7 +93,7 @@ RS=$DESTPATH for i in `find . -type f -o -type l` ; do rm -f ${AD}/${i#./} ; done # We now work from the destination directory -cd ${AD} +cd ${AD} || { echo "cannot cd to ${AD}"; exit 1; } # Remove old symlinks for i in `find . -type l`; do rm -f $i; done -- 2.30.2